//动态路由
import Layout from '../pages/layout';

let router0 = [


    {
        path: '/base',
        component: Layout,
        meta: {title: '考勤配置', icon: 'user', group: 'attend'},
        children: [
            {
                path: 'attend/period/manage',
                component: require('@/pages/attend/period/Manage.vue'),
                name: 'ab:period',
                meta: {title: '考勤周期', perm: 'ab:period'}
            },
            {
                path: 'attend/holiday/manage',
                component: require('@/pages/attend/holiday/Manage.vue'),
                name: 'ab:holiday',
                meta: {title: '节假日', perm: 'ab:holiday'}
            },
            {
                path: 'attend/config/manage',
                component: require('@/pages/attend/config/Manage.vue'),
                name: 'ab:rule',
                meta: {title: '考勤规则', perm: 'ab:rule'}
            },

        ]
    },
    {
        path: '/ac',
        component: Layout,
        meta: {title: '排班', icon: 'finance', group: 'attend'},
        children: [

            // {
            //     path: 'attend/rmType/manage',
            //     component: require('@/pages/dongxw/rmType/MainForm.vue'),
            //     name: 'ab:group',
            //     meta: {title: '班组', perm: 'ab:group'}
            // },

            {
                path: 'attend/classMaster/manage',
                component: require('@/pages/attend/classMaster/MainForm.vue'),
                name: 'ac:class',
                meta: {title: '基本班次', perm: 'ac:class'}
            },
            // {
            //     path: 'dongxw/customer/manage',
            //     component: require('@/pages/dongxw/customer/Manage.vue'),
            //     name: 'ac:dpt-cls',
            //     meta: {title: '部门班次', perm: 'ac:dpt-cls'}
            // },
            {
                path: 'attend/employeeClass/manage',
                component: require('@/pages/attend/employeeClass/MainForm.vue'),
                name: 'ac:emp-cls',
                meta: {title: '员工班次', perm: 'ac:emp-cls'}
            }

        ]
    },
    {
        path: '/attend',
        component: Layout,
        meta: {title: '考勤', icon: 'user', group: 'attend'},
        children: [
            {
                path: '/employeeCard/manage',
                component: require('@/pages/attend/employeeCard/Manage.vue'),
                name: 'att:card',
                meta: {title: '刷卡', perm: 'att:card'}
            },
            {
                path: '/employeeOvertime/manage',
                component: require('@/pages/attend/employeeOvertime/Manage.vue'),
                name: 'att:overtime',
                meta: {title: '加班', perm: 'att:overtime'}
            },
            {
                path: '/employeeHoliday/manage',
                component: require('@/pages/attend/employeeHoliday/Manage.vue'),
                name: 'att:holiday',
                meta: {title: '休假', perm: 'att:holiday'}
            },

            {
                path: '/segment/manage',
                component: require('@/pages/attend/segment/Manage.vue'),
                name: 'att:segment',
                meta: {title: '员工考勤', perm: 'att:segment'}
            },

            {
                path: '/days/manage',
                component: require('@/pages/attend/days/Manage.vue'),
                name: 'att:days',
                meta: {title: '考勤日表', perm: 'att:days'}
            },
            {
                path: '/month/manage',
                component: require('@/pages/attend/month/Manage.vue'),
                name: 'att:month',
                meta: {title: '考勤月度', perm: 'att:month'}
            },
            /*   {
                  path: '/month/makeform',
                  component: require('@/pages/attend/month/MakeForm.vue'),
                  name: 'att:makeform',
                  meta: {title: '计算', perm: 'att:month'}
              } */
        ]
    },
    {
        path: 'myattend',
        component: Layout,
        meta: {title: '我的考勤', icon: 'user', group: 'attend'},
        children: [
            {
                path: '/user/employeeClass/MainForm',
                component: require('@/pages/myattend/employeeClass/Manage.vue'),
                name: 'use:employeeClass',
                meta: {title: '我的班次', perm: 'ac:emp-cls'}
            },

            {
                path: '/user/employeeCard/manage',
                component: require('@/pages/myattend/employeeCard/Manage.vue'),
                name: 'user:employeeCard',
                meta: {title: '我的补卡', perm: 'ac:emp-cls'}
            },
            {
                path: '/user/employeeOvertime/manage',
                component: require('@/pages/myattend/employeeOvertime/Manage.vue'),
                name: 'user:employeeOvertime',
                meta: {title: '我的加班', perm: 'ac:emp-cls'}
            },
            {
                path: '/user/employeeHoliday/manage',
                component: require('@/pages/myattend/employeeHoliday/Manage.vue'),
                name: 'user:employeeHoliday',
                meta: {title: '我的休假', perm: 'ac:emp-cls'}
            },
            {
                path: '/user/employeeAttend/MainForm',
                component: require('@/pages/myattend/employeeAttend/MainForm.vue'),
                name: 'user:employeeAttend',
                meta: {title: '我的考勤', perm: 'ac:emp-cls'}
            },

        ]
    },

    {
        path: '/userInfo',
        component: Layout,
        meta: {title: '个人中心', icon: 'user', group: 'attend'},
        children: [
            {
                path: 'user/apply',
                component: require('@/pages/myattend/employeeCard/Manage.vue'),
                name: 'ui:apply',
                meta: {title: '我的申请', perm: 'purchase:manage'}
            },
            {
                path: 'user/waiting',
                component: require('@/pages/myattend/employeeCard/Manage.vue'),
                name: 'ui:waiting',
                meta: {title: '我的待办', perm: 'purchase:manage'}
            }, {
                path: 'user/finished',
                component: require('@/pages/myattend/employeeCard/Manage.vue'),
                name: 'ui:finished',
                meta: {title: '我的已办', perm: 'purchase:manage'}
            },
            {
                path: 'user/confirm',
                component: require('@/pages/myattend/employeeCard/Manage.vue'),
                name: 'ui:confirm',
                meta: {title: '考勤确认', perm: 'purchase:manage'}
            },
        ]
    },


];

export default router0;
